﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UTSDAL.LINQSQL.Model;

namespace UTSDAL.LINQSQL.Helper
{
    public class DataContextHelper
    {
        private DataContextHelper()
        {

        }

        private static UTSDataContext context = null;

        public static UTSDataContext Context
        {
            get 
            {
                if (DataContextHelper.context == null)
                {
                    DataContextHelper.context = new UTSDataContext();
                }

                return DataContextHelper.context; 
            
            }

            set { DataContextHelper.context = value; }
        }
        
    }
}
